package cn.edu.swu;

public class Main {
    public static void main(String[] args) {
        Student student1 = new Student("2023001", "张三", "男", 20);
        Student student2 = new Student("2023002", "李四", "女", 19);
        Course course1 = new Course("C001", "Java程序设计", "王教授");
        Course course2 = new Course("C002", "数据结构", "刘教授");

        student1.setAge(21);
        course1.setTeacher("张教授");

        System.out.println("--- 学生信息 ---");
        student1.showInfo();
        student2.showInfo();

        System.out.println("\n--- 课程信息 ---");
        course1.showInfo();
        course2.showInfo();
    }
}